//
//  selectdownbox.m
//  maocuhuiOASystem
//
//  Created by michael on 16/5/4.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "selectdownbox.h"

@interface selectdownbox ()
@property(nonatomic,strong)UIButton * selectedButton;
@property (weak, nonatomic) IBOutlet UIButton *noOrder;

@end

@implementation selectdownbox
- (IBAction)didCheckBox:(id)sender {
    UIButton * btn = (UIButton*)sender;
    self.selectedButton.selected = NO;
    btn.selected = YES;
  
    self.selectedButton = btn;
    self.orderString = [NSString stringWithFormat:@"%ld",(long)btn.tag];
}

-(void)awakeFromNib{

    self.autoresizingMask = UIViewAutoresizingNone;
      [self.selectedButton setTitle:@"xxxx" forState:UIControlStateNormal];
    [self didCheckBox:self.noOrder];
   
}

+(instancetype)checkBoxFootView{
    return [[[NSBundle mainBundle] loadNibNamed:@"selectdownbox" owner:nil options:nil] lastObject];
}
@end
